package com.fqy.ticket.business.req;

import com.fqy.ticket.common.req.PageReq;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class DailyTrainQueryReq extends PageReq {

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    // 用于将 HTTP 请求中的日期字符串（如 2023-01-01）按指定格式自动转换为
    // Java 日期类型（如 LocalDate）
    private Date date;

    private String Code;

    public String getCode() {
        return Code;
    }

    public void setCode(String Code) {
        this.Code = Code;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "DailyTrainQueryReq{" +
                "date=" + date +
                ", Code='" + Code + '\'' +
                "} " + super.toString();
    }
}